{% extends "base.html" %}
{% import "bootstrap/wtf.html" as wtf %}
{% import "_macros.html" as macros %}
{% import "_my_wtf_macros.html" as my_wtf_macros %}

{% block title %}万屏时代OPC--充值套餐列表{% endblock %}

{% block panel_heading %}
  万屏时代OPC--充值套餐列表
    <div class="pull-right btn-group">
      <a href="{{ url_for('op_bp.price_pack_set_add') }}" class="btn btn-xs btn-success"
         style="margin-right: 5px;" target="_blank">
          新建充值套餐
      </a>
  </div>
{% endblock %}

{% block panel_body %}
    {% if pagination %}
    <div class="pagination">
        {{ macros.pagination_widget(pagination, 'op_bp.price_pack_set_list') }}
    </div>
    {% endif %}
    <table id="increment-pack-info-table" class="table table-bordered table-hover table-condensed table-striped">
        <thead>
            <tr>
                <th>ID</th>
                <th>套餐名</th>
                <th>原价</th>
                <th>价格</th>
                <th>汇币</th>
                <th>赠送汇币</th>
                <th>标签</th>
                <th>创建时间</th>
                <th>更新时间</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            {% for i in items %}
            <tr>
                <td>{{ i.id }}</td>
                <td>{{ i.name }}</td>
                <td>{{ i.ori_price }}</td>
                <td>{{ i.price }}</td>
                <td>{{ i.bid_point }}</td>
                <td>{{ i.gift_bid_point }}</td>
                <td>{{ i.tag }}</td>
                <td>{{ i.created_datetime }}</td>
                <td>{{ i.updated_datetime }}</td>
                <td>
                    <a
                      class="btn btn-xs btn-primary"
                      href="{{url_for('op_bp.price_pack_set_edit', pack_id=i.id)}}"
                      name="set-info"
                      target="_blank"
                    >编辑</a><br>
                </td>
            </tr>
            {% endfor %}
        </tbody>
    </table>
    {% if pagination %}
    <div class="pagination">
        {{ macros.pagination_widget(pagination, 'op_bp.price_pack_set_list') }}
    </div>
    {% endif %}

{% endblock %}
